<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<link href="images/skin.css" rel="stylesheet" type="text/css" />

	<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
-->
</style>

	<LINK href="Admin_Poli.files/Admin_css.css" type=text/css
		rel=stylesheet>
	<SCRIPT language=JavaScript>
		function Submit(){
			var idd = 0;
			var box = document.getElementsByName("selectID");
			var form = document.getElementById("formu");
			for(var i=0;i<box.length;i++){
				idd = 1;
			}
			if(idd>0){
				if(confirm("确定修改权限？"))
		   		{
		     	 form.submit();
		  		}
			}else{
				alert("请选择权限！");
			}
		}
		function back(){
			window.location = "chengshu/permission.action";
		}
         function openn(){
          var args = openn.arguments;
          if(args[0] == 0) return;
          location.href=(args[0]);
          }
          </SCRIPT>

	<SCRIPT language=javascript src="Admin_Poli.files/Admin.js"></SCRIPT>

	<META content="MSHTML 6.00.2900.5880" name=GENERATOR>
	<body>

		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td width="17" valign="top" background="images/mail_leftbg.gif">
					<img src="images/left-top-right.gif" width="17" height="29" />
				</td>
				<td valign="top" background="images/content-bg.gif">
					<table width="100%" height="31" border="0" cellpadding="0"
						cellspacing="0" class="left_topbg" id="table2">
						<tr>
							<td height="31">
								<div class="titlebt">
									权限管理界面
								</div>
							</td>
						</tr>
					</table>
				</td>
				<td width="16" valign="top" background="images/mail_rightbg.gif">
					<img src="images/nav-right-bg.gif" width="16" height="29" />
				</td>
			</tr>
			<tr>
				<td valign="middle" background="images/mail_leftbg.gif">
					&nbsp;
				</td>
				<td valign="top" bgcolor="#F7F8F9">

					<TABLE cellSpacing=1 cellPadding=3 width="99%" bgColor=#6298e1
						border=0>
						<TBODY>
							<TD noWrap align=middle bgColor=#ebf2f9 height=30>
								<TABLE cellSpacing=0 width="99%" border=0>
									<TBODY>
										<TR>
											<TD noWrap width="20%">
												角色名称：
												<s:property value="role.rolename" />
												
											</TD>
											<td align="center"><div style="color:red"><s:fielderror fieldName="infor"/></div></td>
										</TR>
								</TABLE>
							</TD>
							</TR>
						</TBODY>
					</TABLE>
					<TABLE cellSpacing=1 cellPadding=0 width="99%" border=0>
						<TBODY></TBODY>
					</TABLE>
					<TABLE cellSpacing=1 cellPadding=3 width="99%" bgColor=#6298e1
						border=0>
						<FORM name=formu id="formu" action="chengshu/updatePerRole.action"
							method=post>
							<input type="hidden" name="name"
						value="<s:property value="name" />">
					<input type="hidden" name="id" value="<s:property value="id" />">
						<TBODY>
							<TR>
								<TD noWrap align=middle width=80
									background=Admin_Poli.files/th_bg.gif height=25>
									<FONT color=#ffffff><STRONG>功能编号</STRONG> </FONT>
								</TD>
								<TD noWrap align=middle width=200
									background=Admin_Poli.files/th_bg.gif>
									<FONT color=#ffffff><STRONG>功能名称</STRONG> </FONT>
								</TD>
								<TD noWrap align=middle width=50
									background=Admin_Poli.files/th_bg.gif>
									<INPUT class=button id=submitOtherSelect
										style="WIDTH: 30px; HEIGHT: 18px"
										onclick=CheckOthers(this.form) type=button value=全选
										name=buttonOtherSelect>
								</TD>
							</TR>
							<s:iterator value="allList" var="list">
								<TR onMouseOver="this.style.backgroundColor = '#FFFFFF'"
									style="CURSOR: hand"
									onmouseout="this.style.backgroundColor = ''" bgColor=#ebf2f9>
									<TD noWrap align=middle height=24 width=80>
										<s:property value="#list.fid" />
									</TD>
									<TD noWrap>
										&nbsp;
										<s:property value="#list.fname" />
									</TD>
									<TD noWrap align=middle>
										<s:iterator value="listo" var="listo">
											<s:if test="#list.fid == listo.fid">
												<INPUT style="WIDTH: 13px; HEIGHT: 13px" type=checkbox
													value="<s:property value="#list.fid"/>" name="selectID">

											</s:if>
										</s:iterator>
										<INPUT style="WIDTH: 13px; HEIGHT: 13px" type=checkbox
											value="<s:property value="#list.fid"/>" name="selectID">
									</TD>
								</TR>
							</s:iterator>
							</FORM>
						</TBODY>

					</TABLE>
				</td>
				<td background="images/mail_rightbg.gif">
					&nbsp;
				</td>
			</tr>
			<tr>
				<td valign="middle" background="images/mail_leftbg.gif">
					&nbsp;
				</td>
				<td align="center">
					<input type="button" value="&nbsp;&nbsp;修改&nbsp;&nbsp;"
						onclick="Submit()">
					&nbsp;&nbsp;
					<input type="button" value="&nbsp;&nbsp;返回&nbsp;&nbsp;"
						onclick="back()">
				</td>
				<td background="images/mail_rightbg.gif">
					&nbsp;
				</td>
			</tr>
			<tr>
				<td valign="middle" background="images/mail_leftbg.gif">
					&nbsp;
				</td>
				<td valign="top" bgcolor="#F7F8F9" class="left_txt">

					<img src="images/icon-mail2.gif" width="16" height="11">
					&nbsp;&nbsp;&nbsp;&nbsp;邮箱：liuyongwade@gmail.com
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					组员：刘勇&nbsp;&nbsp;程曙&nbsp;&nbsp;陈皓&nbsp;&nbsp;席晓明&nbsp;&nbsp;刘广云
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;版权所有 侵权必究

				</td>
				<td background="images/mail_rightbg.gif">
					&nbsp;
				</td>
			</tr>


			<tr>
				<td valign="bottom" background="images/mail_leftbg.gif">
					<img src="images/buttom_left2.gif" width="17" height="17" />
				</td>
				<td background="images/buttom_bgs.gif">
					<img src="images/buttom_bgs.gif" width="17" height="17">
				</td>
				<td valign="bottom" background="images/mail_rightbg.gif">
					<img src="images/buttom_right2.gif" width="16" height="17" />
				</td>
			</tr>
		</table>

	</body>
</html>
